<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
 <title></title>
 <style>
 table,th,td{
 	border: 1px solid grey;
 	border-collapse: collapse;
 	padding: 5px;
 }
 table tr:nth-child(odd){
 	background-color: #f1f1f1;
 }
 table tr:nth-child(even){
 	background-color: #ffffff;
 }
 </style>
</head>
<body>

<table>
 <tr>
  <td>我是一行代码</td>
 </tr>
 <tr>
  <td>我是一行代码</td>
 </tr>
 <tr>
  <td>我是一行代码</td>
 </tr>
 <tr>
  <td>我是一行代码</td>
 </tr>
 <tr>
  <td>我是一行代码</td>
 </tr>
 <tr>
  <td>我是一行代码</td>
 </tr>
 <tr>
  <td>我是一行代码</td>
 </tr>
 <tr>
  <td>我是一行代码</td>
 </tr>
</table>
</body>
</html>